using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN PersonHistoryEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: PersonHistoryEntity</para>
	/// <para>Description: ClassPersonHistoryEntity store data of table PersonHistory</para>
	///</summary>

	[Serializable]
	public partial class PersonHistoryEntity{


		private bool _InternalChangedIsNullEmployeeHistoryId=true;
		private bool _IsNullEmployeeHistoryId=true;
		private bool _InternalChangedIsNullOrganizationId=true;
		private bool _IsNullOrganizationId=true;
		private bool _InternalChangedIsNullEmployeeId=true;
		private bool _IsNullEmployeeId=true;
		private bool _InternalChangedIsNullPosition=true;
		private bool _IsNullPosition=true;
		private bool _InternalChangedIsNullStartDate=true;
		private bool _IsNullStartDate=true;
		private bool _InternalChangedIsNullEndDate=true;
		private bool _IsNullEndDate=true;
		private int _EmployeeHistoryId;
		private int _OrganizationId;
		private int _EmployeeId;
		private int _Position;
		private DateTime _StartDate;
		private DateTime _EndDate;
		[XmlElement(ElementName = "IsNullEmployeeHistoryId")]
		public bool IsNullEmployeeHistoryId{
			get{return _IsNullEmployeeHistoryId;}
			set{if(!_InternalChangedIsNullEmployeeHistoryId)_IsNullEmployeeHistoryId=value;}
		}
		[XmlElement(ElementName = "IsNullOrganizationId")]
		public bool IsNullOrganizationId{
			get{return _IsNullOrganizationId;}
			set{if(!_InternalChangedIsNullOrganizationId)_IsNullOrganizationId=value;}
		}
		[XmlElement(ElementName = "IsNullEmployeeId")]
		public bool IsNullEmployeeId{
			get{return _IsNullEmployeeId;}
			set{if(!_InternalChangedIsNullEmployeeId)_IsNullEmployeeId=value;}
		}
		[XmlElement(ElementName = "IsNullPosition")]
		public bool IsNullPosition{
			get{return _IsNullPosition;}
			set{if(!_InternalChangedIsNullPosition)_IsNullPosition=value;}
		}
		[XmlElement(ElementName = "IsNullStartDate")]
		public bool IsNullStartDate{
			get{return _IsNullStartDate;}
			set{if(!_InternalChangedIsNullStartDate)_IsNullStartDate=value;}
		}
		[XmlElement(ElementName = "IsNullEndDate")]
		public bool IsNullEndDate{
			get{return _IsNullEndDate;}
			set{if(!_InternalChangedIsNullEndDate)_IsNullEndDate=value;}
		}
		[XmlElement(ElementName = "EmployeeHistoryId")]
		public int EmployeeHistoryId{
			get{return _EmployeeHistoryId;}
			set{
				_EmployeeHistoryId=value;
				if(_EmployeeHistoryId!=null){
					_IsNullEmployeeHistoryId=false;
					_InternalChangedIsNullEmployeeHistoryId=true;
				}
			}
		}
		[XmlElement(ElementName = "OrganizationId")]
		public int OrganizationId{
			get{return _OrganizationId;}
			set{
				_OrganizationId=value;
				if(_OrganizationId!=null){
					_IsNullOrganizationId=false;
					_InternalChangedIsNullOrganizationId=true;
				}
			}
		}
		[XmlElement(ElementName = "EmployeeId")]
		public int EmployeeId{
			get{return _EmployeeId;}
			set{
				_EmployeeId=value;
				if(_EmployeeId!=null){
					_IsNullEmployeeId=false;
					_InternalChangedIsNullEmployeeId=true;
				}
			}
		}
		[XmlElement(ElementName = "Position")]
		public int Position{
			get{return _Position;}
			set{
				_Position=value;
				if(_Position!=null){
					_IsNullPosition=false;
					_InternalChangedIsNullPosition=true;
				}
			}
		}
		[XmlElement(ElementName = "StartDate")]
		public DateTime StartDate{
			get{return _StartDate;}
			set{
				_StartDate=value;
				if(_StartDate!=null){
					_IsNullStartDate=false;
					_InternalChangedIsNullStartDate=true;
				}
			}
		}
		[XmlElement(ElementName = "EndDate")]
		public DateTime EndDate{
			get{return _EndDate;}
			set{
				_EndDate=value;
				if(_EndDate!=null){
					_IsNullEndDate=false;
					_InternalChangedIsNullEndDate=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END PersonHistoryEntityBase*****************************************/
	/*****************************************************************************************************/
}

